﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.BridgePattern.DiffBrandPhoneDiffSystem.ClassBlast
{
    /// <summary>
    /// Android系统的苹果手机
    /// </summary>
    public class IPhoneAndroid : AbstractBasePhone
    {
        /// <summary>
        /// 操作系统
        /// </summary>
        /// <returns></returns>
        public override string System()
        {
            return "Android";
        }

        /// <summary>
        /// 内存大小
        /// </summary>
        /// <returns></returns>
        public override string Memory()
        {
            return "16G";
        }

        /// <summary>
        /// 打电话
        /// </summary>
        public override void Call()
        {
            Console.WriteLine("Use OS {0}.{1}.{2} Call", this.GetType().Name, this.System(), this.Memory());
        }

        /// <summary>
        /// 发短信
        /// </summary>
        public override void SendMessage()
        {
            Console.WriteLine("Use OS {0}.{1}.{2} SendMessage", this.GetType().Name, this.System(), this.Memory());
        }
    }
}
